// import React from 'react';

// import { Redirect } from "react-router-dom";
// const HYHome = React.lazy(() => import("@/pages/home"));


// import HYRecommend from "../pages/discover/c-pages/recommend";
// import HYRanking from "../pages/discover/c-pages/ranking";
// import HYSongs from "../pages/discover/c-pages/songs";
// import HYDjradio from "../pages/discover/c-pages/djradio";
// import HYArtist from "../pages/discover/c-pages/artist";
// import HYAlbum from "../pages/discover/c-pages/album";
// import HYPlayer from "../pages/player";

import HYIntroduce from "../pages/introduce";
import HYUpload from "../pages/upload";
import HYHome from "../pages/home";
import HYFriend from "../pages/friend";
import HYWorksList from "../pages/worksList";
import HYReportList from "../pages/reportList";
import HYLookList from "../pages/lookList";
import HYNewsDetails from "../pages/newsDetails";
import HYWorksDetails from "../pages/worksDetails";


const routes = [
  {
    path: "/",
    exact: true,
    // render: () => (
    //   <Redirect to="/" />
    // ),
    component: HYHome
  },

  {
    path: "/introduce",
    component: HYIntroduce
  },
  {
    path: "/upload",
    component: HYUpload
  },
  {
    path: "/friend",
    component: HYFriend
  },
  {
    path: "/worksList",
    component: HYWorksList
  },
  {
    path: "/reportList",
    component: HYReportList
  },
  {
    path: "/lookList",
    component: HYLookList
  },
  {
    path: "/newsDetails",
    component: HYNewsDetails
  },
  {
    path: "/worksDetails",
    component: HYWorksDetails
  },

];

export default routes;
